package org.outerj.daisy.diff.html.ancestor.tagtostring;


import org.outerj.daisy.diff.html.ancestor.ChangeText;
import org.outerj.daisy.diff.html.ancestor.TagChangeSematic;
import org.outerj.daisy.diff.html.modification.HtmlLayoutChange;

/**
 * @see org.outerj.daisy.diff.html.ancestor.TagChangeSematic#MOVED
 */
public class ChangeMoved extends ChangeType {
	public TagChangeSematic getChangeType() {
		return TagChangeSematic.MOVED;
	}

	public void addChangeDescription(ChangeText txt,
			HtmlLayoutChange htmlLayoutChange, TagToString tagToString) {
		txt.addText(tagToString.getString(htmlLayoutChange.getMovedStyle())
				+ " " + tagToString.getArticle().toLowerCase() + " ");
		txt.addHtml("<b>");
		txt.addText(tagToString.getDescription().toLowerCase());
		txt.addHtml("</b>");
	}
}